/**
 * Selector.jsx
 * 选择器组件
 *
 * created by qiuwei
 * version 1.0.0
 * 2016年03月18日
 */

import React from 'react';
import * as SelectorStyle from './Selector.less';

export default class Selector extends React.Component {

	constructor(props) {
		super(props);
	}

	handleClick = (event) => {
		let { onClick } = this.props;
		onClick && onClick(event);
	};

	render() {
		let { children } = this.props;
		return (
			<div onClick={this.handleClick}>
				<div className={SelectorStyle.selector}>
					{children}
					<div className='selector'></div>
				</div>
			</div>
		);
	}
}